<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/waybillStatus.tld" prefix="ws" %>
<%@ taglib uri="/WEB-INF/tld/kouAnStatus.tld" prefix="ka" %>
<%@ taglib uri="/WEB-INF/tld/showUpsAndWeight.tld" prefix="uw" %>  
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>运单详情</title>
		<link rel="stylesheet" type="text/css" href="btn_class.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/style.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/desktop.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/ext-patch.css" />

		<script type="text/javascript" src="ext-2.2/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="ext-2.2/ext-all.js"></script>
		<script type="text/javascript" src="js/cal.js"></script>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		

		<script type="text/javascript">
		<%String uId = (String) session.getAttribute("Uid");
			if (uId == null || uId.equals("null")) {%>
			window.parent.location.href = 'index.jsp';
		<%}%>
	</script>
	<style type="text/css">
		
		.btnSubmit
		{
			padding-bottom : 0px;
			margin : 0px;
			padding-left : 0px;
			padding-right : 0px;
			font-family : "宋体", Arial, Helvetica, sans-serif;
			font-size : 12px;
			padding-top : 0px;
			height : 25px;
		}
		.bd1
		{
			width : 200px;
			float : left;
			height : 20px;
		}
		div
		{
			padding-bottom : 0px;
			margin : 0px;
			padding-left : 0px;
			padding-right : 0px;
			font-family : "宋体", Arial, Helvetica, sans-serif;
			font-size : 12px;
			padding-top : 0px;
			
		}
		.right_center
		{
			background : white;
			padding-bottom: 50px;
			padding-left: 30px;
			width : 100%;
			padding-right: 0px;
			padding-top: 28px;
		}
		.wenzi
		{
			text-align : right;
			line-hight :20 px;
			width :102px;
			padding-right :10px;
			float : left;
			height :20 px;
		}
		.wenzi2
		{
			line-hight :20 px;
			width :300px;
			padding-left :40px;
			float : left;
			height :20 px;
		}
		
		.wwhh
		{
			padding-bottom : 10px;
			line-height : 14px;
			padding-left : 110px;
			width : 1000px;
			padding-right : 0px;
			color : #a9a9a9;
			padding-top : 0px;
		}
		
	</style>
	<script type="text/javascript">
	function gotoPrint(wbId){
		var f = document.forms["wbApprovalForm"];
		f.target="_blank"; 
		f.action = "waybill!printWaybill.do?wbId="+wbId;
		f.submit(); 
	}

	
		function managerApprovalWaybill(wbId){
			var wbStatus = document.getElementById("wbStatus").value;
			if(wbStatus == ""){
				alert("请更改订单状态!");
				return;
			}
			var weight = document.getElementById("wbActualWeight").value;
				if(weight == "" )
				{
					alert("请输入重称重量!");
					return;
				}
			var wbBalanceDesc = document.getElementById("wbBalanceDesc").value;
			if(wbBalanceDesc == "" ){
				alert("请输入运单费用说明!");
				return;
			}
			var wbTotalMoney = document.getElementById("wbTotalMoney").value;
			if(wbTotalMoney == ""){
				alert("请输入运单费用!");
				return;
			}
		
			var f = document.forms["wbApprovalForm"];
			var usedPoints = document.getElementById("usedPoints");
			if(usedPoints == undefined){
				f.action = "waybill!managerApprovalAWaybill.do?wbId="+wbId+"&flag=A";
				}else{
					f.action = "waybill!managerApprovalAWaybill.do?wbId="+wbId+"&flag=A&usedPoints="+document.getElementById("usedPoints").value;
				}
			document.getElementById("xyz").disabled = true;
			f.submit(); 
		}
		var strPoint; 
		function calculate(KouAn,wbWarehouse)
		{
			var id = "<c:out value= '${wbTO.uid}'/>";
			Ext.Ajax.request({ 
                   //请求地址 
                   url: 'integral!getIntegralPoint.do?Uid='+id,
                   //成功时回调 
                   success: function(response, options) { 
                      //获取响应的json字符串 
                      
                     var responseArray = Ext.util.JSON.decode(response.responseText);    
                          if(responseArray.success==true){ 
                          	var point =  responseArray.point;
                         	strPoint = point;
                          } 
                	  } 
          	}); 
          	var requestUrl;
          	if(KouAn == "CQ")
            {
          		requestUrl = 'paraConfig!getParaTO.do?pcId=cqKey&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "GZ"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=GZ&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "GZBS"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=GZBS&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "SHBS"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=SHBS&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "SHJJ"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=SHJJ&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "SHQT"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=SHQT&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "SHBSDZ"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=SHBSDZ&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "SHPC"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=SHPC&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "FZ"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=FZ&usaWarehouse='+wbWarehouse;
          	}else if(KouAn == "TJ"){
          		requestUrl = 'paraConfig!getParaTO.do?pcId=TJ&usaWarehouse='+wbWarehouse;
          	}
          	else{
          		requestUrl = 'paraConfig!getParaTO.do';
          	}
              	
			
				 Ext.Ajax.request({ 
                      //请求地址 
                      url: requestUrl,
                      //成功时回调 
                      success: function(response, options) { 
                         //获取响应的json字符串 
                        var responseArray = Ext.util.JSON.decode(response.responseText);  
                             if(responseArray.success==true)
                             { 
                                 var unit_price = responseArray.unit_price;
                        		 var exchange_rate =  responseArray.exchange_rate;   
                        		 var integral_ratio  = responseArray.integral_ratio;
                        		 var first_price = responseArray.first_price;
                        		 //是否可以用积分抵扣
                        		 var usedIntegralFlag = responseArray.usedIntegralFlag;
                        		 //开始积分抵扣的重量
                        		 var startWeightUsedIntegral = responseArray.startWeightUsedIntegral;
                        		 //开始没有首重的重量
                        		 var startWeightNoFirst = responseArray.startWeightNoFirst;
                        		 calculation(unit_price,exchange_rate,integral_ratio,first_price,strPoint,usedIntegralFlag,startWeightUsedIntegral,startWeightNoFirst,KouAn);
                        	 }else{ 
                                alert('参数获取失败！');      
                             } 
                     } 
             }); 
		}
		function calculation(unit_price,exchange_rate,integral_ratio,first_price,strPoint,usedIntegralFlag,startWeightUsedIntegral,startWeightNoFirst,KouAn){
				//电子产品的保险
				var eInsure = document.getElementById("eInsure").value;
				//var isSHBSDZ = (KouAn == "SHBSDZ")?true:false;
				var isSHBSDZ = false;
				
				var wbActualWeight = document.getElementById("wbActualWeight").value;
				var wbEnterWeight = "<c:out value= '${wbTO.wbEnterWeight}'/>";
				wbEnterWeight = Math.ceil(wbEnterWeight);
                var upWeight = Math.ceil(wbActualWeight);
                //这个代表是否用积分抵扣的,是客户提交时的选择
                var flagIsIntegral = false;
            	//第一个是页面上是否选择了积分抵扣 第二个是后台配置的是否可以低分抵扣
        		if ("Y"=="<c:out value= '${wbTO.wbIsIntegral}'/>" && "Y"==usedIntegralFlag) {
        			flagIsIntegral = true;
        		}
                //是否要保险
                var flagInsuranceFlag = "<c:out value= '${wbTO.wbInsuranceFlag}'/>";
                
                var applyValue = "<c:out value= '${wbTO.wbApplyValue}'/>";
                
                var houseWare =  "<c:out value= '${wbTO.wbArea}'/>";

              	//是否到达能到积分抵扣的重量
                var flagBigThanStartWeightUsedIntegral = (Math.ceil(wbActualWeight)>=startWeightUsedIntegral)?true:false;
              //是否达到免首重的重量
                if( wbActualWeight > startWeightNoFirst ) first_price = unit_price;
                
                //不带保险
                if(isSHBSDZ)
                {
                	//总价格                  																		//fomatFloat(FloatMul(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),exchange_rate),2)
        			var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatAdd(FloatMul(FloatAdd(first_price,FloatMul(FloatSub(upWeight,1),unit_price)),exchange_rate),eInsure),2);
  		    		//描述
  		    		document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"+"+eInsure+"(保险费用) ="+wbTotalMoney;
            		document.getElementById("usedPoints").value= "0";
                }
                if(!isSHBSDZ)
                {
                if(flagInsuranceFlag!='Y'){
                	//不用积分
                	if(!flagIsIntegral || !flagBigThanStartWeightUsedIntegral){    
                		if( houseWare != 'OR'){ 
                			//总价格                  																		//fomatFloat(FloatMul(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),exchange_rate),2)
                			var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatMul(FloatAdd(first_price,FloatMul(FloatSub(upWeight,1),unit_price)),exchange_rate),2);
          		    		//描述
          		    		document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"="+wbTotalMoney;
                    		document.getElementById("usedPoints").value= "0";
          		    	}
          		    	if( houseWare == 'OR'){
          		    		var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatMul(FloatAdd(wbEnterWeight,FloatAdd(first_price,FloatMul(FloatSub(upWeight,1),unit_price))),exchange_rate),2);
          		 			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*FloatSub(upWeight,1))*exchange_rate,2);
          		    		//描述
          		    		document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+"="+wbTotalMoney;
          		    		document.getElementById("usedPoints").value= "0";
          		    	}
                	}
                	//使用积分兑换
                	if(flagIsIntegral && flagBigThanStartWeightUsedIntegral){
                	//比较积分和总费用的10%大小关系
                		var compare1 = fomatFloat(FloatMul(FloatMul(FloatAdd(first_price,FloatMul(FloatSub(upWeight,1),unit_price)),exchange_rate),integral_ratio*0.01),2);
                		//var compare1 = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate,2)*integral_ratio*0.01;
                		compare1 = Math.floor(compare1);
                		var compare2 = strPoint;
                		
                		if( houseWare == 'OR'){
	                		//积分够抵用10%的
	                		if(compare2>=compare1){
	                		//是由下面的计算表达式翻译过来的
	                		   var wbTotalMoney = document.getElementById("wbTotalMoney").value =  FloatSub(fomatFloat(FloatMul(FloatAdd(FloatMul(wbEnterWeight,1),FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1)))),exchange_rate),2),compare1);
	              			//	var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate,2)-compare1;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+")-"+compare1+"积分抵扣="+wbTotalMoney;
	                			//使用积分数目  compare1
	                			document.getElementById("usedPoints").value = compare1;
	                		}else//如果积分不够扣的
	                		{
	                			var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatSub(FloatMul(FloatAdd(FloatMul(wbEnterWeight,1),FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1)))),exchange_rate),strPoint),2)
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate,2)-strPoint;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+"-"+strPoint+"积分抵扣="+wbTotalMoney;
	                			//使用积分数strPoint
	                			document.getElementById("usedPoints").value = strPoint;
	                		}
	                	}
	                	if( houseWare != 'OR'){
	                		//积分够抵用10%的
	                		if(compare2>=compare1){
	                		//是由下面的计算表达式翻译过来的
	                		   var wbTotalMoney = document.getElementById("wbTotalMoney").value =  FloatSub(fomatFloat(FloatMul(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),exchange_rate),2),compare1);
	              			//	var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate,2)-compare1;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+")-"+compare1+"积分抵扣="+wbTotalMoney;
	                			//使用积分数目  compare1
	                			document.getElementById("usedPoints").value = compare1;
	                		}else//如果积分不够扣的
	                		{
	                			var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatSub(FloatMul(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),exchange_rate),strPoint),2)
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate,2)-strPoint;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"-"+strPoint+"积分抵扣="+wbTotalMoney;
	                			//使用积分数strPoint
	                			document.getElementById("usedPoints").value = strPoint;
	                		}
	                	}
                	}
                }
                //带上保险
                if(flagInsuranceFlag=='Y'){
                	//不用积分
                	if(!flagIsIntegral || !flagBigThanStartWeightUsedIntegral){    
                		if( houseWare != 'OR'){
	                		var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatMul(FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03)),exchange_rate),2);
    	      		 		//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1)+(applyValue*0.03))*exchange_rate,2);
        	  		    	document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs+"+applyValue+"*0.03保险)*"+exchange_rate+"="+wbTotalMoney;
	          		    	document.getElementById("usedPoints").value= "0";
          		    	}
          		    	if(houseWare == 'OR'){
          		    		var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat(FloatMul(FloatAdd(FloatMul(wbEnterWeight,1),FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03))),exchange_rate),2);
	          		 		//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1)+(applyValue*0.03))*exchange_rate,2);
	          		    	document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs+"+applyValue+"*0.03保险+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+"="+wbTotalMoney;
	          		    	document.getElementById("usedPoints").value= "0";
          		    	}
          		    	
                	}
                	//使用积分兑换
                	if(flagIsIntegral && flagBigThanStartWeightUsedIntegral){    
                			//比较积分和总费用的10%大小关系
                		var compare1 = FloatMul(FloatMul(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),exchange_rate),FloatMul(integral_ratio,0.01));
                		//var compare1 = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate+applyValue*0.03,2)*integral_ratio*0.01;
                		compare1 = Math.floor(compare1);
                		var compare2 = strPoint;
                		if( houseWare != 'OR'){
	                		//积分够抵用10%的
	                		if(compare2>=compare1){                      
	                		 var wbTotalMoney = document.getElementById("wbTotalMoney").value =  FloatSub(fomatFloat(FloatMul(FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03)),exchange_rate),2),compare1);
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate+(applyValue*0.03),2)-compare1;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"+("+applyValue+"*0.03保险*"+exchange_rate+")-"+compare1+"积分抵扣="+wbTotalMoney;
	                			//使用积分数目  fomatFloat(first_price*1+unit_price*(upWeight-1)*exchange_rate*(1+0.03),2)*integral_ratio)*0.01
	                			document.getElementById("usedPoints").value = compare1;
	                		}else//如果积分不够扣的
	                		{
	                			var wbTotalMoney = document.getElementById("wbTotalMoney").value = FloatSub(fomatFloat(FloatMul(FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03)),exchange_rate),2),strPoint);
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate*(1+0.03),2)-strPoint;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"+("+applyValue+"*0.03保险*"+exchange_rate+")-"+strPoint+"积分抵扣="+wbTotalMoney;
	                			//使用积分数strPoint
	                			document.getElementById("usedPoints").value = strPoint;
	                		}
	                	}
	                	if( houseWare == 'OR'){
	                		//积分够抵用10%的
	                		if(compare2>=compare1){                      
	                		 var wbTotalMoney = document.getElementById("wbTotalMoney").value =  FloatSub(fomatFloat(FloatMul(FloatAdd(FloatMul(wbEnterWeight,1),FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03))),exchange_rate),2),compare1);
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate+(applyValue*0.03),2)-compare1;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"+("+applyValue+"*0.03保险+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+")-"+compare1+"积分抵扣="+wbTotalMoney;
	                			//使用积分数目  fomatFloat(first_price*1+unit_price*(upWeight-1)*exchange_rate*(1+0.03),2)*integral_ratio)*0.01
	                			document.getElementById("usedPoints").value = compare1;
	                		}else//如果积分不够扣的
	                		{
	                			var wbTotalMoney = document.getElementById("wbTotalMoney").value = FloatSub(fomatFloat(FloatMul(FloatAdd(FloatMul(wbEnterWeight,1),FloatAdd(FloatAdd(first_price,FloatMul(unit_price,FloatSub(upWeight,1))),FloatMul(applyValue,0.03))),exchange_rate),2),strPoint);
	                			//var wbTotalMoney = document.getElementById("wbTotalMoney").value = fomatFloat((first_price*1+unit_price*(upWeight-1))*exchange_rate*(1+0.03),2)-strPoint;
	                			document.getElementById("wbBalanceDesc").value = "("+first_price+"*1Lbs+"+unit_price+"*("+upWeight+"-1)Lbs)*"+exchange_rate+"+("+applyValue+"*0.03保险+"+wbEnterWeight+"*1Lbs转运费)*"+exchange_rate+")-"+strPoint+"积分抵扣="+wbTotalMoney;
	                			//使用积分数strPoint
	                			document.getElementById("usedPoints").value = strPoint;
	                		}
	                	}
                	}
                	
                }
                }
			
		}
		//取2位小数
		 function fomatFloat(text,pos){
  		     var temp=text*1;
    		 temp=temp.toFixed(pos);
   		     return temp;
		}
		
	</script>
	</head>


<body class="ext-ie ext-ie6 ext-border-box " id="ext-gen6">
<div class="x-panel x-panel-noborder x-form-label-right" id="ext-comp-1001" style="width: 100%;">
	<div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen8" style="mozuserselect: none; khtmluserselect: none;" unselectable="on">
		<span class="x-panel-header-text" id="ext-gen21">运单详情</span>
	</div>
	
	 <form name="wbApprovalForm" method="post">
	 	<s:iterator id="wb" value="wbTO">
		<div class="right_center">
		<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运单信息：</div>
		<br/>
		
			<div style="height:26px">
				<div class="wenzi">订单编号：</div>
				<div class="wenzi2"><s:property value="#wb.wbId"/></div>
			</div>
				<div style="height:26px">
				<div class="wenzi">当前订单状态：</div>
				<div class="wenzi2"><ws:translateStatus enStatus="${wb.wbStatus}"></ws:translateStatus></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">更改状态：</div>
				<select name="wbStatus"  class="bd1">
  						<option value ="unPayforStatus">已付款,待发货</option>
				</select>
				<font color="#ff0000">*</font>
			</div>
			<div style="height:26px">
				<div class="wenzi">仓库：</div>
				<div class="wenzi2"><s:property value="#wb.wbWarehouse"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">提交日期：</div>
				<div class="wenzi2"><s:property value="#wb.wbSubmitTime"/></div>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运费信息：</div>
			<br/>


			<div style="height:26px">
				<div class="wenzi">原始运单：</div>
				<div class="wenzi2"><uw:showUpsWeight upsWeightStr="${wb.wbAllUpsAndwWight}"></uw:showUpsWeight></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">重称重量：</div>
					<input name="wbActualWeight" id="wbActualWeight" onBlur="calculate('${wb.wbKouAn}','${wb.wbWarehouse}')" class="bd1" type="text" size="18"/><font color="red">Lbs(*)</font>
			</div>
			<div style="height:26px">
				<div class="wenzi">运单类型：</div>
				<div class="wenzi2">
			 				<c:if   test= "${wb.wbOperateRequireType == '0' && wb.wbIsFastBox == null }"> 
									 原箱转发
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '0' && wb.wbIsFastBox != null }"> 
									 极速原箱
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == '1'&& wb.wbSplitSvc == null}"> 
									合箱服务
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == null &&wb.wbSplitSvc == '1'}"> 
									分箱服务
							</c:if>
								<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == '1'&&wb.wbSplitSvc == '1'}"> 
									混合服务
							</c:if>&nbsp;
				</div>
			</div>
			<div style="height:26px">
				<div class="wenzi">本次抵扣积分：</div>
					<input name="usedPoints" id="usedPoints" class="bd1" type="text" size="18" />
			</div>
			
			<div style="height:26px;">
				<div class="wenzi">保险费用<font color="red">(上海电子产品专用)</font>：</div>
					<input name="eInsure" id="eInsure" class="bd1" type="text" size="18" value="0" onBlur="calculate('${wb.wbKouAn}','${wb.wbWarehouse}')"/><font color="red">RMB</font>
			</div>
			
			<div style="height:26px">
				<div class="wenzi">运单费用说明：</div>
				<textarea name="wbBalanceDesc" id="wbBalanceDesc" class="bd6" rows="3" cols="40"></textarea><font color="red">*</font>
			</div>
			<div style="height:26px">
				<div class="wenzi">总费用：</div>
					<input name="wbTotalMoney" id="wbTotalMoney" class="bd1" type="text" size="18"/><font color="red">RMB(*)</font>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >货物信息：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi">口岸：</div>
				<div class="wenzi2" id="kouAnDisplayDiv">
					<ka:translateKouAn kouan="${wb.wbKouAn}"></ka:translateKouAn>
				</div>
			</div>
			<div style="height:26px">
				<div class="wenzi">货物说明：</div>
				<div class="wenzi2"><s:property value="#wb.wbGoodsDesc"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">申报价值：</div>
				<div class="wenzi2"><s:property value="#wb.wbApplyValue"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">购买保险：</div>
				<div class="wenzi2" width="1000px">
					<c:if   test= "${wb.wbInsuranceFlag == 'Y'}"> 
							是
					</c:if>
					<c:if   test= "${wb.wbInsuranceFlag == 'N'}"> 
							否
					</c:if>
				</div>
			</div>
			<div style="height:26px">
				<div class="wenzi">积分代扣：</div>
				<div class="wenzi2" width="1000px">
					<c:if   test= "${wb.wbIsIntegral == 'Y'}"> 
							是
					</c:if>
					<c:if   test= "${wb.wbIsIntegral == 'N'}"> 
							否
					</c:if>
				</div>
			</div>
			<div style="height:26px">
				<div class="wenzi">包装要求：</div>
				<div class="wenzi2" style="width:600px">
					<c:if   test= "${wb.wbPackqcfp == '1'}"> 
							取出发票;
						</c:if>
						<c:if   test= "${wb.wbPackjjcl  == '1'}"> 
							加急处理;
						</c:if>
						<c:if   test= "${wb.wbPacknjjg  == '1'}"> 
							内固加件;
						</c:if>
						<c:if   test= "${wb.wbPackghwx  == '1'}"> 
							 更换外箱;
						</c:if>
						<c:if   test= "${wb.wbPackjtwx == '1'}"> 
							加套外箱;
						</c:if>
						<c:if   test= "${wb.wbPackqcnj == '1'}"> 
							去除内件;
						</c:if>
						<c:if   test= "${wb.wbPackyxzy == '1'}"> 
							原箱转发;
						</c:if>
						<c:if  test= "${wb.wbPackzdwpfx == '1'}"> 
							指定物品分箱;
						</c:if>
				</div>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >收货信息：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi">收货人：</div>
				<div class="wenzi2"><s:property value="#wb.wbPUname"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货人电话：</div>
				<div class="wenzi2"><s:property value="#wb.wbPUphone"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货人邮编：</div>
				<div class="wenzi2"><s:property value="#wb.wbPUzip"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货地址：</div>
				<div class="wenzi2"><s:property value="#wb.wbPUcity"/>&nbsp;&nbsp;<s:property value="#wb.wbPUaddress"/></div>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运单留言：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi"><font color="#0000ff">客户留言：</font></div>
				<div class="wenzi2"><s:property value="#wb.wbNote"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi"></div>
				<div class="wenzi2"><input type="button" id="xyz" value="提交"   class="btnSubmit" onclick="managerApprovalWaybill('${wb.wbId}')" /></div>
				<div class="wenzi2"><input type="button" value="去打印页面" class="btnSubmit" onclick="gotoPrint('${wb.wbId}')" /></div>
			</div>
		</div>
		</s:iterator>
	</form>
</div>
</body>
</html>
